package com.neutech.shop.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author Neuedu-远哥
 * @version 1.0
 * @date 2021/9/22 9:31
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private Long id;
    private String username;
    private String password;
    private String phone;
    private String address;
    private Timestamp createTime;
    private Timestamp updateTime;
    /**
     * 用户状态<br>
     * 0：禁用 <br>
     * 1：可用
     */
    private Integer status;

    /**
     * 重载注册用户的构造方法
     */
    public User(String username, String password, String phone, String address) {
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.address = address;
    }
}
